package com.eastfair.notice.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.eastfair.core.base.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * Im对话列表
 * </p>
 *
 * @author liuxiaobai
 * @since 2021-08-30
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "ImDialogSaveDTO", description = "Im对话列表")
public class ImDialogSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 项目ID
     */
    @ApiModelProperty(value = "项目ID")
    @NotNull(message = "请填写项目ID")
    private Long projectId;
    /**
     * 对话唯一code 规则为对话双方ID升序后拼接
     */
    @ApiModelProperty(value = "对话唯一code 规则为对话双方ID升序后拼接")
    @NotEmpty(message = "请填写对话唯一code 规则为对话双方ID升序后拼接")
    @Size(max = 40, message = "对话唯一code 规则为对话双方ID升序后拼接长度不能超过40")
    private String uniqueCode;
    /**
     * 发送人ID
     */
    @ApiModelProperty(value = "发送人ID")
    @NotNull(message = "请填写发送人ID")
    private Long fromUserId;
    /**
     * 接收人ID
     */
    @ApiModelProperty(value = "接收人ID")
    @NotNull(message = "请填写接收人ID")
    private Long toUserId;
    /**
     * 是否生效(默认1：可用 0:不可用)
     */
    @ApiModelProperty(value = "是否生效(默认1：可用 0:不可用)")
    private Integer isEnable;
    /**
     * 是否删除(默认0：未删除 1:已删除)
     */
    @ApiModelProperty(value = "是否删除(默认0：未删除 1:已删除)")
    private Integer isDelete;

}
